import { defineStore } from 'pinia'

interface History {
  id: number
  title: string
  messages: any[]
}

export const useMessageStore = defineStore('message', {
  state: () => ({
    history: [] as History[]
  }),
  persist: {
    enabled: true // true 表示开启持久化保存
  }
})
